package com.elinkway.infinitemovies.http.posttask;

import android.content.Context;

import com.elinkway.infinitemovies.async.MoviesHttpAsyncTask;
import com.elinkway.infinitemovies.bean.CommonBean;
import com.elinkway.infinitemovies.bean.PostCloudErrorBean;
import com.elinkway.infinitemovies.http.api.MoviesHttpApi;
import com.elinkway.infinitemovies.http.parser.CommonParser;
import com.lvideo.http.bean.LVideoDataHull;

/**
 * Created by zhaopeipei on 2016/3/31.
 */
public class PostCloudErrorDataTask extends MoviesHttpAsyncTask<CommonBean> {

    private Context mContext;
    private PostCloudErrorBean mPostCloudErrorBean;
    public PostCloudErrorDataTask(Context context, PostCloudErrorBean postCloudErrorBean) {
        super(context);
        mContext = context;
        mPostCloudErrorBean = postCloudErrorBean;
    }

    @Override
    public void netNull() {
        super.netNull();
    }

    @Override
    public void netErr(int updateId, String errMsg) {
        super.netErr(updateId, errMsg);
    }

    @Override
    public void dataNull(int updateId, String errMsg) {
        super.dataNull(updateId, errMsg);
    }

    @Override
    public LVideoDataHull<CommonBean> doInBackground() {
        if (mPostCloudErrorBean != null) {
            LVideoDataHull<CommonBean> ret = MoviesHttpApi.postCloudError(
                    new CommonParser(), mPostCloudErrorBean);
        }
        return null;
    }

    @Override
    public void onPostExecute(int updateId, CommonBean result) {
        if(result != null) {

        }
    }

}
